package com.xbao.model;

/**
 * Created by qingshengzheng on 2019/1/29.
 */
public class PeriodRecordComp extends PeriodRecord implements Comparable<PeriodRecordComp> {
    private PeriodRuleItem ruleItem;

    public PeriodRuleItem getRuleItem() {
        return ruleItem;
    }

    public void setRuleItem(PeriodRuleItem ruleItem) {
        this.ruleItem = ruleItem;
    }

    @Override
    public int compareTo(PeriodRecordComp o) {
        return this.getOntime()-o.getOntime()<0?-1:1;
    }
}
